<?php
require_once('opties.php');

if ($online){
	$cfg['db']['host']= "localhost";
	$cfg['db']['user']= "root";
	$cfg['db']['password']= "";
	$cfg['db']['database']= "cbsgroenhorst_volgsysteem";
}else{
	$cfg['db']['host']= "localhost";
	$cfg['db']['user']= "college";
	$cfg['db']['password']= "college";
	$cfg['db']['database']= "groenhorst_college";
}
//Connect to the database 
mysql_connect($cfg['db']['host'], $cfg['db']['user'], $cfg['db']['password']); 
//Select Database
mysql_select_db($cfg['db']['database']);

$query = mysql_query("SELECT * FROM `BEOORDELING_TYPE`");
while($data = mysql_fetch_assoc($query)){
	$cfg['general']['beoordeling_type'][$data['BEOORDELING_TYPE_ID']] = $data['NAAM'];
}

$cfg['general']['idle']['sec'] = (($cfg['general']['idle']['min']*60)*1000);
$cfg['general']['maand_naam'] = array(1 => "Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"); 

sort($cfg['general']['eigenschappen']['ik']);
sort($cfg['general']['eigenschappen']['werk']);
sort($cfg['general']['eigenschappen']['kinderen']);
sort($cfg['general']['eigenschappen']['volwassenen']);
//echo "<PRE>";print_r($cfg);
?>